home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / obj2asm.zip / OUMALLOC.C < prev    next >
Text File  |  1991-10-02  |  327b  |  17 lines

  1. #include <stdio.h>
  2. #include <alloc.h>
  3. #include <stdlib.h>
  4. #include "o.h"
  5.  
  6. void *o_malloc( word size )
  7. {
  8.     char    *result;
  9.  
  10.     result = (char *)calloc( 1, size );
  11.     if( result == NULL ) {
  12.         fprintf(stderr, "Out of memory!    [Crrraassshhhhh....]\n" );
  13.         exit(4);
  14.     }
  15.     return( result );
  16. }
  17.